import request from '@/utils/request'

// 查询学生课程列表
export function listLearning_lesson(query) {
  return request({
    url: '/study/learning_lesson/list',
    method: 'get',
    params: query
  })
}

// 查询学生课程详细
export function getLearning_lesson(id) {
  return request({
    url: '/study/learning_lesson/' + id,
    method: 'get'
  })
}

// 新增学生课程
export function addLearning_lesson(data) {
  return request({
    url: '/study/learning_lesson',
    method: 'post',
    data: data
  })
}

// 修改学生课程
export function updateLearning_lesson(data) {
  return request({
    url: '/study/learning_lesson',
    method: 'put',
    data: data
  })
}

// 删除学生课程
export function delLearning_lesson(id) {
  return request({
    url: '/study/learning_lesson/' + id,
    method: 'delete'
  })
}
